used database for show page image rather than API call to fix lag