resize images and host locally