Fix issue when exporting png layers when '.' character is used on filename.
Maybe not the best fix but it would be better to check for the $F string rather than . character to find out if the frame number is being used. This also fixes the issue with exporting a sequence of images where they were overwritting each other. Closes #359 (closed).