Currently you find all tags <a>with rel='prettyPhoto'and use the prettyPhoto () plugin.
You can apply the same methodology to your selector div.post img {by doing something like:
$("div.post img").prettyPhoto();
, , JQuery, div css, . , prettyPhoto() "div.post img".