Prevent image manipulation methods from causing repeat GD failures