Fixed imagecreatefromgif for PNG

The function for PNG resize was imagecreatefromgif instead of imagecreatefrompng.