added post-type image size handling