Image file loading optimization