Handles migrating images to local database/file-system