Save image and thumbnail to DB on upload