Check if the resource is a jpeg file, by looking at the file_extension
true if the resource is an jpeg.
resource id.