Now images are properly added to DB