made change to allow colour images