RGB Image: fix crash