[Photo.java]Implemented the creation of thumbnails

Now the gallery adapter loads the thumbnails(less cpu work).
DB.removePhoto also remove automatically the thumb associated to the
Photo.
The thumbnail is created automatically when it's created a new Photo.