Adding image upload post handler