You may want to resize (reduce dimensions/file size) the image before converting to base64. There are a couple of extensions that you can use to do this:
It is also possible to directly upload an image to cloudDB, but you must use a separate tag just for the image, and a full path to the image (e.g. file://.../.../myimage.jpg)