Fixed some bugs on the image monitor class.