fix preview picture bug , TODO add image resolution check