Simple PHP script for resizing images