Hi!
This sounds like a syntax issue, `end of line expected` usually indicates you've forgotten the colon on the previous line or that your indentation("tabbing"/whitespace) is off.
From what you're describing, it's likely to do with the colon or definition. (e.g image = vs image:)
There's some information in the ren'py docs (specifically the part about "blocks", but if you need more specific help feel free to send me an image of the specific code that's not working and I'll help you out