updated the image model to only save thumbnails and originals