adding a mechanism for generating test images