Fixed deprecated warnings for piston-image