Fixed bugs on JPEG and start/stop buttons