starting sprite main paint function