formatted code, added hiding image while is not loaded