Use real unit (um and ppi) instead of pixel in the parameters.