adding get rgb image function, adding back old constructor