Storing the picture data in database, updated index and show to reflect these changes