various fixes to entity, drawing and texture manager updated