resetPicture function implemented.