fixed errors in image grabber