Added image support for gallery post type.