Refactor to Texture2D *not working*
Signed-off-by: Ignacio Quintero <nacho950@gmail.com>