It was a bug that I had to add that code to limit camera preview size.  This patch fixes the bug, so now we're back to the 2mp preview size