fixed minor bug for custom post types
Fixed minor bugz:
 - saved duplicate images
 - timeout on remore API access