images now working correctly with dynamic loading script