add function main img randam change