Fixes bug with inputs below images not keeping track of the position after dragging images around