improved image processing, cleaning up css