Am I crazy?

I've had similar issues. I've noticed that actually explicitly
calling "return" often fixes the issue:

def img_types
  return ["jpg","png","gif"]
end

HTH,
Michael