successfully converting to image
working in firefox as well
added some constraints to the data
successfully able to upload and save images