Added 'gray' image format support

Was declared in docs but wasn't supported