Adding CPP file to handle header from texture
Fixing bugs