added basic image upload support