Added image upload functionality to database