Modified to work with the screenDimension static -> not static change in the Effects class.