store image with their format intact