Image -q -i -> Fatal Error

Whenever I query "image" of a image, maya crashes.
Example:
string $window=window;
columnLayout;
image -i "C:/AA.jpg" MyImage;
showWindow $window;

;//--This command makes my maya crash!//--
image -q -i MyImage;