ImageSize.extract creates ImageSize from BufferedImage