Factor out pixelDimensions and setActions methods