Added stimulus image loading logic