testing with new temp images and fixing bugs