fixed jpg problems