added texture support and image handler