my attempt at storing pixel data (which doesn't work ATM)