add common utils and clean image