image upload for new post working