Add test for pixelDimensionInImage