Run layoutIfNeeded before renderInContext

Things like auto layout seem to work best if you call layoutIfNeeded before renderInContext.
Added scale to screenshots.
Layout if needed.