made some modifications to correct timing issues. Also changed pixel_gen so that my desired test pattern is created. Required functionality complete