Added support for direct frame buffer displays
Added support for direct frame buffer displays

Once an image is displayed, capture the frame buffer so that when the
same image is re-displayed later, we can skip the fbi scaling step and
just copy the captured buffer image to /dev/fb0.

Also fixed a few edge cases that caused problems.

EdLeafe/photoviewer,EdLeafe/photoviewer,EdLeafe/photoviewer