Moved command_queued assignment to after setting the command, this is important for cases where the block access the current images properties.
Some more styling and spelling improvements.