Refactoring texture.rkt slightly
Isolate utility functions into utility.rkt