revert back to image file saving rather than urls