image sampling is not a good idea at all
fixed thumbnail handling