Fix some issue for pwg.tags.getImages mysql error if order parameter is provided
Add test
TODO : need to find a way to test array result for api because order can vary and it's error proned.