add waitforimages
add loader and get some image loading working