fix default img behavior in chrome and ff