Please check if the prefix is contained in the API response, in case of a non-existing image or invalid encodedKey we probably return an exception which could cause an IndexOutOfRange exception here.