Getting rid of pixel reference