try and make images.cpp faster to compile