added getPicture method to PictureManager
improved storing and fetching pictures from local device
fixed some errors