Creating alphamask seperately from reading pixels