From: Riikka on
I found it out! The property must be defined right after plotting the image. Hope this helps someone who is struggling with the same problem.