attachments get the same date like the post

added a new parameter to post_image_to_media_library: post_date. I
assume that the post_date is in gmt, otherwise we need a second
parameter which is the date in gmt.