fixed mainpicture bug