database now takes png img data. Preparing initImage to store it for new edits.