code performing sparse coding experiments
method to create an image full of random noise
simple function to grab patches from an image