Problem asigning loaded image to image component using code

A post was split to a new topic: Uploading files to Colab