Php class image manipulation.