small modifications to image cast.