Fixed PHP Fatal error in images helper.