Preview draws accurately with layers