is.im: Test Whether An Object Is A Pixel Image
Description
Tests whether its argument is a pixel image
  (object of class "im").Value
- TRUEif- xis a pixel image, otherwise- FALSE.
Details
This function tests whether the argument x is a
  pixel image object of class "im". For details of this
  class, see im.object.
  
  The object is determined to be an image if it inherits from
  class "im".