upload image from website to database with crop, resize and thumbnails