Revert b747396..fe3fb25

This rolls back to commit b747396afbbaf24adc27238d03d5ca44f394213d.
Revert "Revert "getting picture from database""

This reverts commit b747396afbbaf24adc27238d03d5ca44f394213d.