resize cover after uploading.
refactor.
update query, image mime type.