add change picture size function