Fixed bug for when image api doesn't return results