improved image flashing and modified css