fixed serious bug for PicW and PicH 

-sh -sw in command line with case value should change to -sw -sh