Eliminate exceptions when used with float images