proper image laoding file