apply image uploade to posts