make load-images option changeable

Hi, I made a small patch to enable image loading when needed. It is still disabled by default so it won't affect any existing tests.