Image file optimization, fixed on load behaviour