Added gradient image method