fixed crashing test, fixed bug with images not loading