Use thumbnail cache instead of refreshing every time
Fix wrong parameter order