Image_lib: A possible patch for CodeIgniter, see https://github.com/EllisLab/CodeIgniter/pull/3106