Resizing images thru PHP classes