Fixed crash bug, added method skeleton

Program no longer crashes with a "Directory not found" error when using
the Back function, and method skeletons for ImagePreview have been added