Go to terminal and type:

defaults write com.apple.screencapture type png