added image load with a hack