Then how will the changes go to db? Also that function calling will only generate resized images, but why not save to db? as they will be null in the column and by saving we shall save the link to resized images in the db