Fixing image problem in Mac