Everything working except selecting the currently displaying previewImage. Might work on layout as well, but it's good enough