PHP class to re-size and scale images