Footage will only bend. If you have a PNG file that has an alpha chanel you can use auto trace to create a mask, then you can copy that mask and paste it to a shape layer, then extrude the shape layer. If we knew some details it would help come up with a solution that may be a more efficient way to solve your problem.
When I copy the masks of image.png, to the shape, it works, but when I enable the 3D on shape, masks no longer work.
When you switched to the ray-traced 3D renderer, After Effects showed you a dialog box describing the limitations of this renderer. It says that masks don't work on continuously rasterized layers in this renderer. Here is the same information in the After Effects documentation:
Please, read the resources available to you. They will answer nearly all of your questions.
Thank You so much!