Save image in the database as well and remove some extra JSON.stringify/parse calls