Added auto texture creation for loaded images.