pulling images from db and default image if missing