Changed frameCount, spacing and margin to named optional parameters