added smart crop for thumbnail in gallery module