solved errors being caused by loading RMagick