fixed bug where multiple images caused app to crash. now uses first image if available