fixed unintended saving of dataurl to database