moved strip_images_for_save to _image.js