use hash for thumbnail qualities instead of switch cases