got image abstraction working with double arrays. we need to convert them to int or byte arrays so that they run faster.