Changing resource to png