you have two phrase:
first is: مهما يكن من أمر فإني سأبذل الجهد في تصوير الأمير صورًا
second is: تكون على قدر المستطاع كثيرة الشبه به
in the second phrase the subject is "صور"
but in the first phrase "صورا" is adverb
Look at this sentense:
مهما يكن من أمر فإني سأبذل الجهد في تصوير الأمير صورًا التي تكون على قدر المستطاع كثيرة الشبه به
Here, I added "التي" ,it's like "that" in english, but the meaning is not changed
if you don't get understant, you can say me that