fix resize and upload
add cache header
unclutter imports