add png compression, and better resizing with imagemagick