Rename Log to Debug
Use shared_ptr when loading texture2D from memory