Refining resize and cssprite scripts in tools.