Miscellaneous commits to add to next

Misc commits to add to next
If we do that, can we then implement a generic `resize_image` function along the lines of `read_image`, that does the heavy lifting? That way we don't have 2 implementations of the logic in this component, just two components that wrap the `resize_image` function to different effect.