resize hamlet image and clean up css