Make sure values are in pixels