load images but still error messages
load images without error messages. Tidy up code