GraphicsMagick: limit gm support to specific filename extensions

RAWs are excluded as GraphicsMagick would render them with third party
libraries in reduced quality - slow and only 8-bit