Fix failing test due to image dtype