Add Layer.image type check
Allow inline video plays