@Stoleti:
possibilities:
1) you did not change the file on the server
2) you made a misstake
3) you are not using GD as graphic module in 4images
@TheOracle:
1) the extension can be deceptive
2) your example is equal to this: $types = array(1 => "gif", 2 => "jpeg", 3 => "png");
$image_handle = "image".$types[$image_info[2]];
which is already present in 4images, except its slower.