A simple PHP class to handle images