fixed firefox img clearing bug