Fixed issue noted by @iltercengiz that crashed the app when copying an image