Image slice script using php and GD