Image from data query only loads some of the time

Fixed by putting image in repeater, pushing just result 0 into repeater data array and using the repeater itemReady to display image.