This is my code that I use to save the image to a Bitmap. This piece of code is based on the code from CyanogenMod\'s camera app so I would assume it would work
I would suggest not setting the picture size in code and let the camera return the best picture it can capture. Check the code given in the answer here.
https://stackoverflow.com/a/9745780/2107118