This comment does not match the code that follows it.  The figure on the last line should be 480x360, not 480x320. I wasted a half hour trying to figure this out!  Also, it is not a good example because the preview is too close to the actual screen size.  Use 512x384 or something and show how that gets scaled down to 480x360.