End to end working (requality and resizing). Now to add size conditions