clean public img and compress