Update existing imshow with new image data

When this is called in a loop RAM is slowly filled until it is full. Didnt find a solution yet.