Skip loading RMagick if already loaded

In a case-insensitive filesystem environment, there is a possibility that RMagick gets loaded twice(`require 'rmagick'` and `require 'RMagick'` loads the same file, but Ruby sees them as different ones).
This PR solves it by loading RMagick only if needed. 

Refs #1205, #1330