move img css hacks to the element itself