Check for overflow in number of pixels when allocating images